package org.ahuanlien.crm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class JSONResult {
	private String msg;
	private boolean success = true;

	public static JSONResult mark(String msg) {
		return new JSONResult(msg, false);
	}

	public static JSONResult success(String msg) {
		return new JSONResult(msg, true);
	}
}

